package light.head.start;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import light.head.config.BillBusinessTypeParm;
import light.head.config.ConfigParm;
import light.head.config.HandleParm;
import light.head.config.TemplateParm;

/**
 * @author janhang
 * @2010-12-14  下午04:54:53
 */
public class LoadConfigParm implements ServletContextListener {

	public void contextInitialized(ServletContextEvent arg0) {
		System.out.println("loding: config.xml ...\t\t" + (ConfigParm.loadConfigParm() ? "success" : "failure"));
		System.out.println("loding: handle.xml ...\t\t" + (HandleParm.loadAll() ? "success" : "failure"));
		System.out.println("loading: template.xml ...\t\t" + (TemplateParm.loadAll() ? "success" : "failure" ));
		System.out.println("loading: billBusinessType.xml ...\t\t" + (BillBusinessTypeParm.loadBillBusinessType() ? "success" : "failure"));
	}

	public void contextDestroyed(ServletContextEvent arg0) {
	}
}
